UpdateMovie
TheUpdateMovie
function allows your application to ensure that the Movie Toolbox properly displays your movie after it has been uncovered.Your application should call this function between the Window Manager's
BeginUpdate
andEndUpdate
functions. (For details, see Inside Macintosh: Macintosh ToolBox Essentials Essentials.) Do not callMoviesTask
at this time. You will observe better display behavior if you callMoviesTask
at the end of your update processing.
pascal OSErr UpdateMovie (Movie theMovie);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).DESCRIPTION
TheUpdateMovie
function does not actually update the movie's graphics world. Rather, the function invalidates the movie's display state so that the Movie Toolbox redraws the movie the next time you call theMoviesTask
function. If you need to force a movie to be redrawn outside of a Window Manager update sequence, your application can callUpdateMovie
and then call theMoviesTask
function (described on page 2-110) to service the movie.The Movie Toolbox determines the portion of the screen to update by examining the graphics port's visible region.
ERROR CODES
invalidMovie -2010 This movie is corrupted or invalid SEE ALSO
For sample code that uses theUpdateMovie
function in a Window Manager update sequence, see Listing 2-13 on page 2-54.